export const scrollToError = (errorEl) => {
  if (errorEl) {
    errorEl.scrollIntoView({ behavior: 'smooth' });
  }
}